Problems in the application of automatic image analysis to investigations of clay