Parameterized Kernel Principal Component Analysis: Theory and applications to supervised and unsupervised image alignment