Opencv Change Image Type Python