Image Restoration via Frequency Selection