fix problem with "Save as PNG" button