Added textAlign property, fixed reference bug