Added image gallery handler