Update Gallery.cpp