chaiwat update function upload picture