adding jpeg and add first id