Added additional input validation to resize. Now, the resize factor cannot be less than 1 or more than 100