Adding support for the reference image.
Fixed a bug where the wavelength was being read as a string
but compared to a number.