interface to Thomas Boutell's gd library
