Restore to original width only once per hide

Fixes being able to resize the image and then scroll without it restoring back after the image has been hidden