refactoring:
For boundary checking and clipping with CHECK_COORDS and CLIP_COORDS
working correct also with values lesser than 0 we need 'int' instead of
'unsigned int'.
If using the previous 'unsigned int' approach, then pixel will accumulate
unmotivated at row 0 and column 0.