A knowledge based architecture for the virtual restoration of ancient photos