Pātuhitia tēnei: How to Optimally Sample and Resample Images.