Aperture Design for Learning-based Image Restoration