Added imageToVector.