resizing the input from the camera