The hard coded image path was corrected and better error handling added.