added utf-8 support to png image creation