Restore the working version of taking pic and save to dropbox.