You could use the width and height of the polygon/rectangle in longitude
and latitude coordinates. Then use the ratio of that rectangle to the image
size and it should fit.
Edit: I should note that depending on where your images
are going to show up you might need some special math for the dateline
(-180 to 180) or prime-meridian (0 to 360).