take picture and show histogram