Added an 'export' button to demo saving the resolution