Fixed bug with FITS viewer resizing