Draw texts into a png file with libpng and freetype2