write imgs to dropbox