Also display histogram of each image

And some general cleanup of the script