generating test image with matplotlib 1.3.0