Image Resizing fixed, code by mbtron.