convert image to opencv object and display it