Fixed a bug in the "applyColormapToImage" code where an error would occur if the image was empty.