This gem allows you to simply optimize CarrierWave images via jpegoptim or optipng.