Image registration using Fermat Transforms