bug in dynamic thumbnails for jp2; conditional loading of OpenLayers js in catalog controller