Optimize the display image