Issue #83: selectively using malloc and realloc based on data length, and also getting width and height in handleStream rather than prepareRender
Issue #83: selectively using malloc and realloc based on data length, and also getting width and height in handleStream rather than prepareRender

gift-surg/GIFT-Grab,gift-surg/GIFT-Grab,gift-surg/GIFT-Grab,gift-surg/GIFT-Grab