Fix find_gallery in image controller