eliminated much of the wrng code developed by the students and fixed the error in the image template