Different average color algorithm from http://www.bobbygeorgescu.com/2011/08/finding-average-color-of-uiimage/