Fixes for images in gallery