split image and plot histogram in subplots