Finished implementing ImageOptimizer
Removed some unused helper methods