Updates image sizes in the gallery.