new option -s for image resizing

functionality to resize image before uploading