Application of the Automatic Image Processing in Modeling of the Deformation Mechanisms Based on the Digital Representation of Microstructure