Add image resizing functionality to the assetsOptimizer.