added template derictory and image directory