normalize image mode for jpg when odd colorspace is used