Fix ofImage memory leak.