Adaptive Representations for Image Restoration