libgd binding for Ruby