use opemcv to handle image format