added try/catch block around image creating, and fixed the redundant bug on what was being added to the .list file.