Allow path to be passed into convertToHtml