Fixed image resize not working.