using opencv library to open image files