Reading images in OpenCV and PIL