neglect nan & inf when centering the image range (SHIFT+mouse)