added picture attachment feature with paperclip and aws
slight refactoring