Added image saving