changed for matlab-version R2022b, imfreehand to drawfreehand, getPosition to...
changed for matlab-version R2022b, imfreehand to drawfreehand, getPosition to Position, dimension check ==3 to <=3
changed for matlab-version R2022b, imfreehand to drawfreehand, getPosition to Position, dimension check ==3 to <=3