Added gd overloads taking a byte array.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>