Made gd.open accept readable stream as an image source