Fixed the CarrierWaveExtension so that it also works with RMagick.