Repair code for dropbox and image