Fix test_imagedraw failures