Use sensor_msgs::image_encodings to set encoding.