fix some FindBugs warnings
Merge pull request #3435 from marco-dev/fixImageUtilsFindBugs

fix some FindBugs warnings