Only extend Paperclip and CarrierWave if defined