Fixed image resize problem