Created new process for image optimization