added paperclip to handle image files,  converted many erb to haml