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,13+10);path([[0,0],[0,13],[9,13],[9,5],[19,5],[19,0],[0,0]]);text([0,6.5],'13x','left');text([4.5,13],'9x','above');text([19,2.5],'5x','right');text([9.5,0],'19x','below');text([4.5+2.1,13+5.25],'2','below');text([9.5+2.9,.5],'2','below');]

Perimeter =