fixing bug in resize code where previous width and height were not being tracked properly, causing delta values to always be = 0.