First draft implementation of rendering map to texture with libPNG.