FITS visualizer handles images with NaN and infinite pixel values