gd copy* functions added