Fixed destroy function and added paperclip