use the proper function in cv_bridge to do the conversion for you