Fix displaying of photos in admin section of "galleries" bundle.