some code modified add picture