Decreasing dimensions of the image by 2 and create new one.