fixed formatting, deleted contents, and put debug alerts in writing picture to local application directory. It is not writing. Please check.