update routes and paperclip url setting for s3 images