Added flags to enable primitive image filtration
Added filter function. Ought to work
minor bugfix and fine-tuning. Filter by the score works now
Merged from filter branch