Tests and small bugfix for gd.Image.prototype.watermark()