Multi-Directional Scratch Detection and Restoration in Digitized Images