update example code and image