fixed some unsigned int issues

I think the assumption is that the size_x_ and size_y_ are > 0 - but this is prob safer.