Fixed the bug with random offset selection

When you wish to mirror the image you are also forced to set the crop_size param, which is fine. But if you set the crop_size to be equal to the width (or height) to cancel its behaviour, the program will terminate without any explanations.

The problem is here
```c++
h_off = Rand() % (height - crop_size);
w_off = Rand() % (width - crop_size);
```

This bugfix sets the h_off or w_off to be zero where appropriate.

The Google C++ style guide disallows unsigned integer types, preferring to use regular `int` and avoid bugs introduced by unsigned/signed comparison and the like. Caffe code right now isn't real strict about that, but it's probably better to just deal in `int` here.