        if ($value==null) {
            // delete the image from disk
            \Storage::disk($disk)->delete($this->{$attributeName});

            // set null in the database column
            $this->attributes[$attributeName] = '';
        }

        // if a base64 was sent, store it in the db