Well, you need to convert your coordinates into a gmaps pixels and load all required tiles with an aerial view and combine them together into a one image. Check this link for an example: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
This isn't in code yet. I downloaded macports and am using this command in gdal:
gdal_translate -of VRT -a_srs EPSG:4326 -gcp 0 0 -98.177152 26.310785 -gcp 8184 0 -98.167821 26.309455 -gcp 8184 6872 -98.168988 26.302221 -gcp 0 6872 -98.178463 26.178463 map.jpg map.vrt
This generates a VRT file that I can preview in the maptiler program that creates a polygon overlay representative of how the tiles I generate will look. When I preview it, this is what it gives me:
It's changing the coordinates from within the vrt file to the preview and I'm not sure why. When I change the coordinates in the prewview to the ones specified in the command and in the vrt file, this is what it looks like:
I thought maybe maptiler wasn't reading the file correctly, but when I generate the tiles, they tiled to that first aspect ratio, so I know it's not just that.