Fix bug with FITS viewer resizing