implemented avatar photo (paperclip)