Best contrast based pixel choosing implemented.