Fixed resize code.  It was using the wrong dimensions.