Replace GraphicsMagick with OpenCV