Adds the image resize