changed the length of the input image