fixing super-obvious bug in draw_img_random