update  load pic  and cache pic function