Optimize only if image is newer