scale images and call clarifai from opencv