re: test.avg_img, fixed modulus bug in openCL and overflow bug in python