Reduce the number of layers in these images.