move carrierwave dependency to dm_core