Optimized images compression.
A more robust comparison operator