Quaternions and geometric algebras for image processing