You should either use `newWidth` here, or get rid of `newWidth` completely and just use `width` everywhere.