average kind of works, still need to divide for pixel size