Replace large image and optimize both