I have a `.jpg` image named `r`.
I am using the following code to plot a histogram:

    r // ImageData // Flatten // Histogram

Is it correct?
Another task is to apply `Histogram3D`. However, I am unable to use `Histogram3D`. I know I need to convert my data into a 2D list but I am having difficulties figuring out how.