A few try/catch clauses around the deletion of files. Single reference for thumbnail size