added Smarty lib, added image mani. lib