Added resize handling to Panorama