Made a Histogram class

How to use:
Histogram histogram = new Histogram("vert", changed_image);
changed_image = histogram.getImage();
redrawImageFrame();