Mathematically-Based Algorithms for Film Digital Restoration