Reduced the number of layers in the image