use tmp array for the gray filter
akkumulator method

looks good