Library function to convert between cv and cv2 images.
Updated to include convert functions.