Optimizations for 1bpc images