Added option for pixel-perfect check.