Better handling of no images in the gallery