Fixed resizing bug
Fixed image resizing bug