adding image gallery fix