pass on pixel size to calculations
set log level from slider value