added medias and carrierwave uploader