Changed to recalculate transform on every repaint.