added UI for image gallery