WPImageOptimizer: Fixes memory leak