Fix image spec failing, refactor cleanse_filename and moves it to /lib. Updates paperclip.