Unified Restoration Method for Different Degraded Images