implemeted the point operations

You shouldn't loop thorough all the pixels to create the histogram. See the tutorial, also there is `np.histogram` function.