Pošljite SMS: How to Optimally Sample and Resample Images.