pixbuf: optimised comparision