resize image & add two more tests