[FIX] Image resizing bug