Replace all occurrences when replacing, not just the first

We're using grunt-hashres to hash our image resources, in addition to JS and CSS. Since the same image can be used multiple times in a CSS file, we uncovered a bug where hashres only replaces the first occurrence. This pull request fixes it to replace all.