adapting carrierwave into app