Bugfix for RGB and RGBA arrays displayed with imshow