Added test of new API for generating server rendered images.
Image API now draws the terrain layer of a map.
Improved code.