Added use of sampling for the map image.

Fixes issue #67