Creates a pixel barchart (RGBA) based on the colour values in an image