Added ability to resize -sample image.