Fiexed image resize bugs