Image resizing fix.