picture gallery fix