If you know the origin position and size of the image in pixels and the start and end longitudes and latitudes of the map, then this is an easy algebra problem.