Fixed inversed Gd alpha

This is a fix for inverted alpha channel behaviour in Gd library. Similar approach has been already used in Image::getColorAt method.