Fixed loading of non-grayscale images into layer maps