Replace setTransform to transform into Rect.Draw() and Image.Draw()