Optimize the screenshot