public function reattachSeparator($content) {
        $separator = $this->imgSeparator;
        $content = array_map(function($val) use ($separator) {
            // If html content starts with text then after the array explosion the first item in array will contain only text and <img tag should not be reattached to it
            if (preg_match('/src=\".+\"/', $val) == 1) {
                return $separator . $val;
            } else if (preg_match('/src=\".+\"/', $val) == 0) { // there is array item without src, do not add img tag o
                return $val;
            }

        }, $content);
        
        return $content;
    }