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,20+10,-10,12+10);path([[0,0],[0,12],[7,12],[7,5],[20,5],[20,0],[0,0]]);text([0,6],'12x','left');text([3.5,12],'7x','above');text([20,2.5],'5x','right');text([10,0],'20x','below');text([3.5+2.1,12+5.25],'2','below');text([10+2.9,.5],'2','below');]

Perimeter =