add simple logic to calculate average image colour