fix  img resource error