Add a snippet for image histogram.