make tests more robust for different PIL versions
use assert_bbox_equals for bbox comparision