Optimizes image assets.