Free draw functinality added (bug: final point is duplicated)