Fixed image resizing.