catch cv exception on scaled images