Fixes image gallery for view image