images: Fast dating using least-squares criteria and algorithms