Stochastic investigation of long-term persistence in two-dimensional images of rocks