fix _getGallerySpace in image.js if no gallery choosen