exchanged obsolete GeneralPath with Path2D
started better handling of animation action (only in the animation thread)
schedule actions on the canvas