Registered Image and MyRectangle with leakcheck