frontend: move text drawing to libpicofe