Added legacy support for tile conversion.

Also fixed bug which made the tiled raster versions smaller then
the raster being converted.