get rid of canvas resize
reset params only if iterations>howMuch
min density >1
getMainColor is MUCH MORE fast
my bad