gallery clear resized images on change