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,15+10,-10,13+10);path([[0,0],[0,13],[3,13],[3,4],[15,4],[15,0],[0,0]]);text([0,6.5],'13x','left');text([1.5,13],'3x','above');text([15,2],'4x','right');text([7.5,0],'15x','below');text([1.5+2.1,13+5.25],'2','below');text([7.5+2.9,.5],'2','below');]

Perimeter =