Updated to v2.2.0, moved division outside forloop, summing array with counter. Access modifiers set to all methods. Greyscale image now working correcty.