A bit later than promised.

The attached example redraws pictures when you press the button. I like Aaron's idea of just changing the vertices and I might look into that. Meanwhile this is an unfinished work - the code is pretty messy and short of quite a few bits but it should show one way of doing it. Just enter the measurements in the cells and press the button.