added original elib_gd after my pull request merged