update GD class

fix trouble png i gif alpha chanels