added paperclip resizing