protected function makeInstance(array $attributes)
    {
        if (in_array($this->type, ['jpg', 'png'])) {

            // Image properties
            $properties = array_only($attributes, ['height', 'width', 'text', 'background', 'color']);
            $properties['type'] = $this->type;

            // Remove properties from attributes
            $attributes = array_diff($attributes, $properties);

            $path = (new Image)->make($properties);
        } else {
            $path = $this->faker->file($this->filePath());
        }

        return $this->file($attributes, $path);
    }