Added support for the pentagon and the star. Fixed bug that caused crash after creating a shape and then pressing back and then touching canvas.