Fixed image saving