changed "for" loop for the better.
Added possibility to output percentage of positive cells on a per-image basis, e.g. to calculate stdev