Use reference when drawing input buffer