Calculating Dimensions of Fractals through Image Processing