Allow for mask to be passed into render.