Enable text based alternatives for graph display and drawing entry

Try another version of this question

Write the polynomial that represents the perimeter of the figure pictured below.

[Graphs generated by this script: initPicture(-10,19+10,-10,12+10);path([[0,0],[0,12],[5,12],[5,8],[19,8],[19,0],[0,0]]);text([0,6],'12x','left');text([2.5,12],'5x','above');text([19,4],'8x','right');text([9.5,0],'19x','below');text([2.5+2.1,12+5.25],'2','below');text([9.5+2.9,.5],'2','below');]

Perimeter =