Avoided implicit singed-unsigned comparisons

Apparently, CImg uses unsigned data types for image dimensions.
Adapted some of the code to follow suit. Left the convolve(..)-
method untouched for now since there is more comples arithmetic
going on where negative indices might actually be neccessary.