Merge "Skip NaN values when estimating pixel value range."