updated paperclip attachement model