Updated to use paperclip to attach images