Attempt to store the viewport while altering the file