added paperclip to model
fixed a bug with the uploading