Fix warnings

@aeslaughter this is in your new `ImageFunction`, only thing I wasn't sure about was if it's OK to pass `unsigned` to the PCRE `FullMatch` function... 

#1777.