Added paperclip gem and fixed controller