direct pixel manipulation, feels a lot faster
removed multiplications from inner loops