added option to resample png and tiff files