# Image debugging problem

###################################################
# Student should enter code below

import simplegui

# load test image
test_image = simplegui.load_image("http://commondatastorage.googleapis.com/codeskulptor-assets/Race-Car.png")
test_image_size = [135, 164]
test_image_center = [test_image_size[0] / 2, test_image_size[1] / 2]

# draw handler
def draw(canvas):
    canvas.draw_image(test_image,
                      test_image_center,
                      test_image_size,
                      test_image_center,
                      test_image_size
                     )

# create frame and register draw handler
print 'test_image_size',test_image_size
frame = simplegui.create_frame("Test image", test_image_size[0], test_image_size[1])
frame.set_draw_handler(draw)

# start frame
frame.start()


