redo template logic for display of cropped images and maps