Update graphics.pyx

Bugfix on function Transform.transform_rectangle()