Core Image unit implementing a simple 'threshold' filter