Fix bug in image loading where we were doing BGR->RGB filipping when loading into a one-channel image.