Made everything #define constants. Made it a single operation. Removed blur.
Fix corner edge case pixel problem. Added variable in convolution().