new image filtering and tests