Using digital photography to implement the McFarland method