Fixed buggy imgresize invocation code.