Moved method get_neighbor_white_pixel to MiscUtils to avoid having the same code written in several places.