Split a large image into lots of tiles used for google map api