Application of digital image processing to mortar crack analysis