make text preview backend use imagettftext, fixes #8087

please review @MorrisJobke 

preceded by https://github.com/owncloud/core/pull/8964