added update image test codes