I've added declaration of function that calculates affine transformation normalizing given image.