Updating optimized images after resizing