Fixed the gallery image issue