A Scala port of tilemaker.py from the PanoJS project. Divides a large image into smaller tiled images.