preliminary image saving