changed histogram bins to 256