Stav dette: How to Optimally Sample and Resample Images.