duration should be converted to a float, not an integer
add_transition should accept a duration string
Fixed Rect#x2= and Rect#y2= changing width and height instead of position