gallery image download fix