fixed crash on draw_image