optimizes panorama image