Changed method Canvas.ReduceResolution
Changed algorithm of pattern creating