fixed bug related to encoding when converting cv:Mat to sensor_msgs::Image