resample and png-ify