Implemented vector based drawing algorithm