Minor changes on image resize.

No obfuscation of code.