Drawing and analyzing particles on images