Refactored uploader to integrate better with carrierwave