Fix ofImage memory leak.
Merge pull request #3250 from bakercp/bugfix-ofImageMemoryLeak

Fix ofImage memory leak.